<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>工程师</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
$(function(){
	showChoosePEgRoomBtns(false);
});
function chooseBack(){
	showChoosePEgRoomBtns(true);
}
function showChoosePEgRoomBtns(show){
	if(show){
		$("#belongEnginId_easyuiChoose").show();
		$("#belongEnginId_easyuiClear").show();
	}else{
		$("#belongEnginId_easyuiChoose").hide();
		$("#belongEnginId_easyuiClear").hide();
	}
}
</script>
</head>
<body>
	<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="zyEngineerController.do?doAdd" tiptype="3">
		<table cellpadding="0" cellspacing="1" class="formtable">
			<tr>
				<td align="right" style="width: 200px;">
					<label class="Validform_label"> 系统用户:</label>
				</td>
				<td class="value" style="width: 500px;">
					<input name="tsBaseUser.id" type="hidden" id="sysUserId">
					<input name="realName" class="inputxt" id="realName" readonly="readonly" datatype="*" nullmsg="请选择系统用户"/>
					<t:choose url="zyContactsController.do?zySysUsers" name="sysUserList" fun="chooseBack"
						icon="icon-search" title="系统用户列表"  isclear="true"
						hiddenName="sysUserId" hiddenid="id" textname="realName" ></t:choose>
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">系统用户</label>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label"> 工程师编号 : </label>
				</td>
				<td class="value">
					<input id=engineerNo name="engineerNo" type="text" style="width: 150px" class="inputxt" datatype="*" /> 
					<span class="Validform_checktip"></span> 
					<label class="Validform_label" style="display: none;">工程师编号</label>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label"> 姓名: </label>
				</td>
				<td class="value">
					<input id="name" name="name" type="text" style="width: 150px" class="inputxt" datatype="*" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">姓名</label>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label"> 性别: </label>
				</td>
				<td class="value">
					<t:dictSelect field="gender" type="select" typeGroupCode="<%=StaticValue.DIC_SEX%>" defaultVal="<%=StaticValue.DIC_SEX_MALE %>" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">性别</label>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 手机号:
				</label></td>
				<td class="value">
					<input id="cellphone" name="cellphone" type="text" style="width: 150px" class="inputxt" datatype="cPhone" ajaxurl="zyEngineerController.do?checkEgCellphoneUnique"/>
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">手机号</label>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label"> 邮箱: </label>
				</td>
				<td class="value">
					<input id="email" name="email" type="text" style="width: 150px" class="inputxt" datatype="e" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">邮箱</label>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label"> 所属机构:</label>
				</td>
				<td class="value">
					<input name="belongOrg.id" type="hidden" id="belongOrgId" />
					<input name="shortname" class="inputxt" id="shortname" readonly="readonly" datatype="*" nullmsg="请选择所属机构"/>
					<t:choose url="zyContactsController.do?zyOrgs" name="orgList" 
						icon="icon-search" title="机构列表" isclear="true"
						hiddenName="belongOrgId" hiddenid="id" textname="shortname" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">所属机构</label>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label"> 状态: </label>
				</td>
				<td class="value">
					<t:dictSelect field="state" type="select" typeGroupCode="<%=StaticValue.DIC_ENGINEER_STATE%>" defaultVal="<%=StaticValue.DIC_ENGINEER_STATE_ONJOB %>" hasPleaseSelect="false" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">状态</label>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 认证证书:
				</label></td>
				<td class="value">
					<t:dictSelect field="authentication" type="select" typeGroupCode="<%=StaticValue.DIC_CERTIFICATE%>" hasPleaseSelect="false" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">认证证书</label>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label"> 证书编号:
				</label></td>
				<td class="value">
					<input id="certificateNum" name="certificateNum" type="text" style="width: 150px" class="inputxt"  />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">证书编号</label>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label">
						上级工程师或人员: </label></td>
				<td class="value">
					<input name="parentId.id" type="hidden" id="belongEnginId" />
					<input name="enginName" class="inputxt" id="enginName" readonly="readonly" />
					<t:choose url="zyEngineerController.do?zyEngineersForParentEg" name="EngineerList" paramIds="sysUserId"
						icon="icon-search" title="机构列表" isclear="true"
						hiddenName="belongEnginId" hiddenid="id" textname="name" inputTextname="enginName" />
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">上级工程师或人员</label>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label class="Validform_label"> 身份证:</label>
				</td>
				<td class="value">
					<input id="idNum" name="idNum" type="text" style="width: 150px" class="inputxt" datatype="*" ajaxurl="zyEngineerController.do?checkEgIdNumUnique"/>
					<span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">身份证号</label>
				</td>
			</tr>
			<%-- <tr>
					<td align="right">
						<label class="Validform_label">
							工程师类别:
						</label>
					</td>
					<td class="value">
					     	 <t:dictSelect field="type" type="select" typeGroupCode="<%=StaticValue.DIC_ENGINEER_TYPE %>" ></t:dictSelect> 
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">工程师类别</label>
					</td>
				</tr> --%>
		</table>
	</t:formvalid>
</body>
<script src="webpage/com/zybk/zy_engineer/zyEngineer.js"></script>